package com.onedec.schedule.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OnedecScheduleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OnedecScheduleExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andScheduleIdIsNull() {
            addCriterion("schedule_id is null");
            return (Criteria) this;
        }

        public Criteria andScheduleIdIsNotNull() {
            addCriterion("schedule_id is not null");
            return (Criteria) this;
        }

        public Criteria andScheduleIdEqualTo(Integer value) {
            addCriterion("schedule_id =", value, "scheduleId");
            return (Criteria) this;
        }

        public Criteria andScheduleIdNotEqualTo(Integer value) {
            addCriterion("schedule_id <>", value, "scheduleId");
            return (Criteria) this;
        }

        public Criteria andScheduleIdGreaterThan(Integer value) {
            addCriterion("schedule_id >", value, "scheduleId");
            return (Criteria) this;
        }

        public Criteria andScheduleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("schedule_id >=", value, "scheduleId");
            return (Criteria) this;
        }

        public Criteria andScheduleIdLessThan(Integer value) {
            addCriterion("schedule_id <", value, "scheduleId");
            return (Criteria) this;
        }

        public Criteria andScheduleIdLessThanOrEqualTo(Integer value) {
            addCriterion("schedule_id <=", value, "scheduleId");
            return (Criteria) this;
        }

        public Criteria andScheduleIdIn(List<Integer> values) {
            addCriterion("schedule_id in", values, "scheduleId");
            return (Criteria) this;
        }

        public Criteria andScheduleIdNotIn(List<Integer> values) {
            addCriterion("schedule_id not in", values, "scheduleId");
            return (Criteria) this;
        }

        public Criteria andScheduleIdBetween(Integer value1, Integer value2) {
            addCriterion("schedule_id between", value1, value2, "scheduleId");
            return (Criteria) this;
        }

        public Criteria andScheduleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("schedule_id not between", value1, value2, "scheduleId");
            return (Criteria) this;
        }

        public Criteria andScheduleNameIsNull() {
            addCriterion("schedule_name is null");
            return (Criteria) this;
        }

        public Criteria andScheduleNameIsNotNull() {
            addCriterion("schedule_name is not null");
            return (Criteria) this;
        }

        public Criteria andScheduleNameEqualTo(String value) {
            addCriterion("schedule_name =", value, "scheduleName");
            return (Criteria) this;
        }

        public Criteria andScheduleNameNotEqualTo(String value) {
            addCriterion("schedule_name <>", value, "scheduleName");
            return (Criteria) this;
        }

        public Criteria andScheduleNameGreaterThan(String value) {
            addCriterion("schedule_name >", value, "scheduleName");
            return (Criteria) this;
        }

        public Criteria andScheduleNameGreaterThanOrEqualTo(String value) {
            addCriterion("schedule_name >=", value, "scheduleName");
            return (Criteria) this;
        }

        public Criteria andScheduleNameLessThan(String value) {
            addCriterion("schedule_name <", value, "scheduleName");
            return (Criteria) this;
        }

        public Criteria andScheduleNameLessThanOrEqualTo(String value) {
            addCriterion("schedule_name <=", value, "scheduleName");
            return (Criteria) this;
        }

        public Criteria andScheduleNameLike(String value) {
            addCriterion("schedule_name like", value, "scheduleName");
            return (Criteria) this;
        }

        public Criteria andScheduleNameNotLike(String value) {
            addCriterion("schedule_name not like", value, "scheduleName");
            return (Criteria) this;
        }

        public Criteria andScheduleNameIn(List<String> values) {
            addCriterion("schedule_name in", values, "scheduleName");
            return (Criteria) this;
        }

        public Criteria andScheduleNameNotIn(List<String> values) {
            addCriterion("schedule_name not in", values, "scheduleName");
            return (Criteria) this;
        }

        public Criteria andScheduleNameBetween(String value1, String value2) {
            addCriterion("schedule_name between", value1, value2, "scheduleName");
            return (Criteria) this;
        }

        public Criteria andScheduleNameNotBetween(String value1, String value2) {
            addCriterion("schedule_name not between", value1, value2, "scheduleName");
            return (Criteria) this;
        }

        public Criteria andScheduleContentIsNull() {
            addCriterion("schedule_content is null");
            return (Criteria) this;
        }

        public Criteria andScheduleContentIsNotNull() {
            addCriterion("schedule_content is not null");
            return (Criteria) this;
        }

        public Criteria andScheduleContentEqualTo(String value) {
            addCriterion("schedule_content =", value, "scheduleContent");
            return (Criteria) this;
        }

        public Criteria andScheduleContentNotEqualTo(String value) {
            addCriterion("schedule_content <>", value, "scheduleContent");
            return (Criteria) this;
        }

        public Criteria andScheduleContentGreaterThan(String value) {
            addCriterion("schedule_content >", value, "scheduleContent");
            return (Criteria) this;
        }

        public Criteria andScheduleContentGreaterThanOrEqualTo(String value) {
            addCriterion("schedule_content >=", value, "scheduleContent");
            return (Criteria) this;
        }

        public Criteria andScheduleContentLessThan(String value) {
            addCriterion("schedule_content <", value, "scheduleContent");
            return (Criteria) this;
        }

        public Criteria andScheduleContentLessThanOrEqualTo(String value) {
            addCriterion("schedule_content <=", value, "scheduleContent");
            return (Criteria) this;
        }

        public Criteria andScheduleContentLike(String value) {
            addCriterion("schedule_content like", value, "scheduleContent");
            return (Criteria) this;
        }

        public Criteria andScheduleContentNotLike(String value) {
            addCriterion("schedule_content not like", value, "scheduleContent");
            return (Criteria) this;
        }

        public Criteria andScheduleContentIn(List<String> values) {
            addCriterion("schedule_content in", values, "scheduleContent");
            return (Criteria) this;
        }

        public Criteria andScheduleContentNotIn(List<String> values) {
            addCriterion("schedule_content not in", values, "scheduleContent");
            return (Criteria) this;
        }

        public Criteria andScheduleContentBetween(String value1, String value2) {
            addCriterion("schedule_content between", value1, value2, "scheduleContent");
            return (Criteria) this;
        }

        public Criteria andScheduleContentNotBetween(String value1, String value2) {
            addCriterion("schedule_content not between", value1, value2, "scheduleContent");
            return (Criteria) this;
        }

        public Criteria andScheduleStartTimeIsNull() {
            addCriterion("schedule_start_time is null");
            return (Criteria) this;
        }

        public Criteria andScheduleStartTimeIsNotNull() {
            addCriterion("schedule_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andScheduleStartTimeEqualTo(Date value) {
            addCriterion("schedule_start_time =", value, "scheduleStartTime");
            return (Criteria) this;
        }

        public Criteria andScheduleStartTimeNotEqualTo(Date value) {
            addCriterion("schedule_start_time <>", value, "scheduleStartTime");
            return (Criteria) this;
        }

        public Criteria andScheduleStartTimeGreaterThan(Date value) {
            addCriterion("schedule_start_time >", value, "scheduleStartTime");
            return (Criteria) this;
        }

        public Criteria andScheduleStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("schedule_start_time >=", value, "scheduleStartTime");
            return (Criteria) this;
        }

        public Criteria andScheduleStartTimeLessThan(Date value) {
            addCriterion("schedule_start_time <", value, "scheduleStartTime");
            return (Criteria) this;
        }

        public Criteria andScheduleStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("schedule_start_time <=", value, "scheduleStartTime");
            return (Criteria) this;
        }

        public Criteria andScheduleStartTimeIn(List<Date> values) {
            addCriterion("schedule_start_time in", values, "scheduleStartTime");
            return (Criteria) this;
        }

        public Criteria andScheduleStartTimeNotIn(List<Date> values) {
            addCriterion("schedule_start_time not in", values, "scheduleStartTime");
            return (Criteria) this;
        }

        public Criteria andScheduleStartTimeBetween(Date value1, Date value2) {
            addCriterion("schedule_start_time between", value1, value2, "scheduleStartTime");
            return (Criteria) this;
        }

        public Criteria andScheduleStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("schedule_start_time not between", value1, value2, "scheduleStartTime");
            return (Criteria) this;
        }

        public Criteria andScheduleEndTimeIsNull() {
            addCriterion("schedule_end_time is null");
            return (Criteria) this;
        }

        public Criteria andScheduleEndTimeIsNotNull() {
            addCriterion("schedule_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andScheduleEndTimeEqualTo(Date value) {
            addCriterion("schedule_end_time =", value, "scheduleEndTime");
            return (Criteria) this;
        }

        public Criteria andScheduleEndTimeNotEqualTo(Date value) {
            addCriterion("schedule_end_time <>", value, "scheduleEndTime");
            return (Criteria) this;
        }

        public Criteria andScheduleEndTimeGreaterThan(Date value) {
            addCriterion("schedule_end_time >", value, "scheduleEndTime");
            return (Criteria) this;
        }

        public Criteria andScheduleEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("schedule_end_time >=", value, "scheduleEndTime");
            return (Criteria) this;
        }

        public Criteria andScheduleEndTimeLessThan(Date value) {
            addCriterion("schedule_end_time <", value, "scheduleEndTime");
            return (Criteria) this;
        }

        public Criteria andScheduleEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("schedule_end_time <=", value, "scheduleEndTime");
            return (Criteria) this;
        }

        public Criteria andScheduleEndTimeIn(List<Date> values) {
            addCriterion("schedule_end_time in", values, "scheduleEndTime");
            return (Criteria) this;
        }

        public Criteria andScheduleEndTimeNotIn(List<Date> values) {
            addCriterion("schedule_end_time not in", values, "scheduleEndTime");
            return (Criteria) this;
        }

        public Criteria andScheduleEndTimeBetween(Date value1, Date value2) {
            addCriterion("schedule_end_time between", value1, value2, "scheduleEndTime");
            return (Criteria) this;
        }

        public Criteria andScheduleEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("schedule_end_time not between", value1, value2, "scheduleEndTime");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1IsNull() {
            addCriterion("schedule_bak1 is null");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1IsNotNull() {
            addCriterion("schedule_bak1 is not null");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1EqualTo(String value) {
            addCriterion("schedule_bak1 =", value, "scheduleBak1");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1NotEqualTo(String value) {
            addCriterion("schedule_bak1 <>", value, "scheduleBak1");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1GreaterThan(String value) {
            addCriterion("schedule_bak1 >", value, "scheduleBak1");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1GreaterThanOrEqualTo(String value) {
            addCriterion("schedule_bak1 >=", value, "scheduleBak1");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1LessThan(String value) {
            addCriterion("schedule_bak1 <", value, "scheduleBak1");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1LessThanOrEqualTo(String value) {
            addCriterion("schedule_bak1 <=", value, "scheduleBak1");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1Like(String value) {
            addCriterion("schedule_bak1 like", value, "scheduleBak1");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1NotLike(String value) {
            addCriterion("schedule_bak1 not like", value, "scheduleBak1");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1In(List<String> values) {
            addCriterion("schedule_bak1 in", values, "scheduleBak1");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1NotIn(List<String> values) {
            addCriterion("schedule_bak1 not in", values, "scheduleBak1");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1Between(String value1, String value2) {
            addCriterion("schedule_bak1 between", value1, value2, "scheduleBak1");
            return (Criteria) this;
        }

        public Criteria andScheduleBak1NotBetween(String value1, String value2) {
            addCriterion("schedule_bak1 not between", value1, value2, "scheduleBak1");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2IsNull() {
            addCriterion("schedule_bak2 is null");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2IsNotNull() {
            addCriterion("schedule_bak2 is not null");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2EqualTo(String value) {
            addCriterion("schedule_bak2 =", value, "scheduleBak2");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2NotEqualTo(String value) {
            addCriterion("schedule_bak2 <>", value, "scheduleBak2");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2GreaterThan(String value) {
            addCriterion("schedule_bak2 >", value, "scheduleBak2");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2GreaterThanOrEqualTo(String value) {
            addCriterion("schedule_bak2 >=", value, "scheduleBak2");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2LessThan(String value) {
            addCriterion("schedule_bak2 <", value, "scheduleBak2");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2LessThanOrEqualTo(String value) {
            addCriterion("schedule_bak2 <=", value, "scheduleBak2");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2Like(String value) {
            addCriterion("schedule_bak2 like", value, "scheduleBak2");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2NotLike(String value) {
            addCriterion("schedule_bak2 not like", value, "scheduleBak2");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2In(List<String> values) {
            addCriterion("schedule_bak2 in", values, "scheduleBak2");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2NotIn(List<String> values) {
            addCriterion("schedule_bak2 not in", values, "scheduleBak2");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2Between(String value1, String value2) {
            addCriterion("schedule_bak2 between", value1, value2, "scheduleBak2");
            return (Criteria) this;
        }

        public Criteria andScheduleBak2NotBetween(String value1, String value2) {
            addCriterion("schedule_bak2 not between", value1, value2, "scheduleBak2");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3IsNull() {
            addCriterion("schedule_bak3 is null");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3IsNotNull() {
            addCriterion("schedule_bak3 is not null");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3EqualTo(String value) {
            addCriterion("schedule_bak3 =", value, "scheduleBak3");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3NotEqualTo(String value) {
            addCriterion("schedule_bak3 <>", value, "scheduleBak3");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3GreaterThan(String value) {
            addCriterion("schedule_bak3 >", value, "scheduleBak3");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3GreaterThanOrEqualTo(String value) {
            addCriterion("schedule_bak3 >=", value, "scheduleBak3");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3LessThan(String value) {
            addCriterion("schedule_bak3 <", value, "scheduleBak3");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3LessThanOrEqualTo(String value) {
            addCriterion("schedule_bak3 <=", value, "scheduleBak3");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3Like(String value) {
            addCriterion("schedule_bak3 like", value, "scheduleBak3");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3NotLike(String value) {
            addCriterion("schedule_bak3 not like", value, "scheduleBak3");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3In(List<String> values) {
            addCriterion("schedule_bak3 in", values, "scheduleBak3");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3NotIn(List<String> values) {
            addCriterion("schedule_bak3 not in", values, "scheduleBak3");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3Between(String value1, String value2) {
            addCriterion("schedule_bak3 between", value1, value2, "scheduleBak3");
            return (Criteria) this;
        }

        public Criteria andScheduleBak3NotBetween(String value1, String value2) {
            addCriterion("schedule_bak3 not between", value1, value2, "scheduleBak3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}